const express = require("express");
const cors = require("cors");
const bodyParser = require("body-parser");

const app = express();

app.use(cors());

app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());
app.use(bodyParser.text());

app.post("/reportData", (req, res) => {
  console.log("req.body", req.body);

  res.status(200).send("success");
});

app.listen(9800, () => {
  console.log("9800端口启动成功");
});
